package com.yanqu.road.server.timer.oldplayerreturn;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.oldplayerreturn.OldPlayerReturnModule;
import com.yanqu.road.server.manger.player.GamePlayerMgr;
import com.yanqu.road.utils.executor.GeneralTask;

/**
 * @author ：zfr
 * @date ：2021/12/10 11:30
 */
public class PlayerReturnTask extends GeneralTask {
    @Override
    public void doRun() {
        for (GamePlayer player : GamePlayerMgr.getAllOnlinePlayer()) {
            player.getModule(OldPlayerReturnModule.class).syncOtherReturnRoleInfo();
            player.getModule(OldPlayerReturnModule.class).checkNeedSync();
        }
    }
}
